
import request from '@/utils/request.js'

export const getExpensesList = (params) => {
  return request({
    url: '/expenses/project',
    method: 'get',
    params
  })
}
export const getExpensesInfoList = (data) => {
  return request({
    url: '/expenses/project?community_code=' + data,
    method: 'get',
  })
}

export const addExpensesList = (data) => {
  return request({
    url: '/expenses/project',
    method: 'post',
    data
  })
}

export const getExpensesInfo = (id) => {
  return request({
    url: '/expenses/project/' + id,
    method: 'get',
  })
}

export const editExpensesList = (data) => {
  return request({
    url: '/expenses/project/' + data.id,
    method: 'put',
    data
  })
}

export const delExpensesList = (id) => {
  return request({
    url: '/expenses/project/' + id,
    method: 'delete',
  })
}
